package com.zhoux.minidao.datasource;

public class DataContextHandler {

	private static ThreadLocal<DataSourceType> threadLocal=new ThreadLocal<DataSourceType>();
	
	
	public static void clear(){
		threadLocal.remove();
	}
	
	public static DataSourceType get(){
		return threadLocal.get();
	}
	
	public static void set(DataSourceType dataSourceType){
		threadLocal.set(dataSourceType);
	}
}
